package avicit.bdp.dds.api.dto;

import avicit.bdp.dds.dao.entity.DefinitionGroupByUser;

import java.util.List;

/**
 * user process define dto
 */
public class DefineUserDto {

    private int count;

    private List<DefinitionGroupByUser> userList;

    public DefineUserDto(List<DefinitionGroupByUser> defineGroupByUsers) {

        for(DefinitionGroupByUser define : defineGroupByUsers){
            count += define.getCount();
        }
        this.userList = defineGroupByUsers;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<DefinitionGroupByUser> getUserList() {
        return userList;
    }

    public void setUserList(List<DefinitionGroupByUser> userList) {
        this.userList = userList;
    }
}
